home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Report Writers / Crystal Repot 9.0 Full CD version / Setup.exe / Windows / System32 / HTMLRE90.DLL / HTML / 11816 < prev    next >
Encoding:
Text File  |  2002-07-05  |  696 b   |  39 lines

  1. <script>
  2. function InitExtra()
  3. {
  4.     OnSetPrinterNameDisabled();
  5.  
  6.     if ( document.layoutform.usedefaultprinter[1].checked )
  7.     {
  8.         document.layoutform.printername.focus();
  9.     }
  10. }
  11.  
  12. function CheckSpecifiedPrinter()
  13. {
  14.     // map layout to the actualy layout
  15.     if ( document.layoutform.usedefaultprinter[0].checked )
  16.     {
  17.         document.layoutform.layout.value = "1";
  18.     }
  19.     else
  20.     {
  21.         document.layoutform.layout.value = "3";
  22.  
  23.         // check empty name
  24.         if ( document.layoutform.printername.value == "" )
  25.         {
  26.             alert( L_PRINTER_NAME_EMPTY );
  27.  
  28.             document.layoutform.printername.focus();
  29.             document.layoutform.printername.select();
  30.  
  31.             return false;
  32.         }
  33.     }
  34.  
  35.     return true;
  36. }
  37. </script>
  38. %1
  39.